<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix' => config('admin.route.prefix'),
    'namespace' => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('users', 'UserController');
    $router->resource('coins', 'CoinController');
    $router->resource('notice', 'NoticeController');
    $router->resource('clues', 'ClueController');
    $router->resource('tasks', 'TaskController');
    $router->resource('user/task', 'UserTaskController');
    $router->resource('contacts', 'ContactController');
    $router->resource('user/signs', 'UserSignLogController');
    $router->resource('user/coins', 'UserCoinController');
    $router->resource('user/coin/clues', 'UserCoinClueController');
    $router->resource('lottery/setting', 'LotterySettingController');
    $router->resource('sign/config', 'SignConfigController');
    $router->resource('admin/setting', 'AdminSettingController');
    $router->resource('coin/clue/global', 'CoinClueGlobalController');
    $router->resource('invite/config', 'InviteConfigController');
    $router->resource('user/amount/log', 'UserAmountLogController');
});
